package org.jeecg.modules.supplier.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.supplier.dto.ProductRelationDto;
import org.jeecg.modules.supplier.entity.PdPurchaseDetail;

import java.util.List;

/**
 * <p>
 * 申购订单明细表 Mapper 接口
 * </p>
 *
 * @author twm
 * @since 2021-06-22
 */
public interface PdPurchaseDetailMapper extends BaseMapper<PdPurchaseDetail> {


    /**
     * 获取已经配送或者没有配送的药瓶
     * @param firm
     * @param startDate
     * @param endDate
     * @param status
     * @return
     */
    public List<ProductRelationDto> getProduceRelation(@Param("firm") String firm,
                                                       @Param("startDate") String startDate,
                                                       @Param("endDate") String endDate,
                                                       @Param("status") Integer status,
                                                       @Param("spec") String spec,
                                                       @Param("name") String name,
                                                       @Param("dStartdate") String disStartDate,
                                                       @Param("dsEndDate") String disEndDate);
}
